import Vue from 'vue'
import VueRouter from 'vue-router'
import HomeView from '../views/homeview/HomeView.vue'

Vue.use(VueRouter)

const routes = [
  {
    path:"/",
    name:"home",
    redirect:"/homeview",
  },
  {
    path: '/homeview',
    name: 'home',
    component: HomeView
  },
  {
    path: '/classify',
    name: 'classify',
    component: () => import('../views/classify/ClassIfy.vue')
  },
  {
    path: '/eatview',
    name: 'eatview',
    component: () => import('../views/eatview/EatView.vue')
  },
  {
    path: '/shooping',
    name: 'shooping',
    component: () => import('../views/shopping/ShoopPing.vue')
  },
  {
    path: '/myview',
    name: 'myview',
    component: () => import('../views/myview/MyView.vue')
  },
  {
    path: '/xiangqing',
    name: 'xiangqing',
    component: () => import('../views/xiangqing/XiangQing.vue')
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/login/LoginView.vue')
  },
]

const router = new VueRouter({
  routes
})

export default router
